package org.remembrance.scheduling02.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author remembrance
 * @version 1.0
 * @date 2022/2/17 9:50
 * @desc 邮件实体，包含邮件主题，发件人，收件人，抄送人
 */
@Component
public class EmailAddress {
    //邮件主题
    private String emailSubject;
    //发件人邮箱地址
    @Value("${jes.email-sender-address}")
    private String sender;
    //收件人邮箱地址
    private String receiver;
    //抄送人邮箱地址
    private List<String> copiedPeople;

    public String getEmailSubject() {
        return emailSubject;
    }

    public void setEmailSubject(String emailSubject) {
        this.emailSubject = emailSubject;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public List<String> getCopiedPeople() {
        return copiedPeople;
    }

    public void setCopiedPeople(List<String> copiedPeople) {
        this.copiedPeople = copiedPeople;
    }
}
